import http from '@/utils/request';

//获取用户信息
export const getUserinfo = ((data)=>{
	return http.get('/api/user/getUserinfo', data)
})

//七牛云上传
export const qiniuUpload = ((data)=>{
	return http.post('/api/public/upload', data)
})

//搭子入驻
export const apply = ((data)=>{
	return http.post('/api/user/apply', data)
})

//获取轮播图列表
export const swiperLists = ((data)=>{
	return http.get('/api/user/swiperLists', data)
})

//获取搭子列表
export const getSettledLists = ((params)=>{
	return http.get('/api/user/getSettledLists', params)
})

//获取系统配置信息
export const getSystemConfig = ((params)=>{
	return http.get('/api/admin/getSystemConfig', params)
})

//获取兴趣标签列表
export const gettags = ((params)=>{
	return http.get('/api/admin/gettags', params)
})

//获取话题标签列表
export const getdynamicsTags = ((params)=>{
	return http.get('/api/admin/getdynamicsTags', params)
})

//发布话题
export const Newdynamics = ((params)=>{
	return http.post('/api/user/Newdynamics', params)
})

//动态列表
export const getDynamicsLists = ((params)=>{
	return http.get('/api/admin/getDynamicsLists', params)
})

//获取用户动态详情
export const UserDynamicsDetails = ((params)=>{
	return http.get('/api/user/UserDynamicsDetails', params)
})

//获取用户搭子详情
export const getSettledUserDetails = ((params)=>{
	return http.get('/api/user/getSettledUserDetails', params)
})

//通过用户id获取该用户发布过的动态
export const getUserDynamicsLists = ((params)=>{
	return http.get('/api/user/getUserDynamicsLists', params)
})

//创建订单
export const OrderCreate = ((params)=>{
	return http.post('/api/user/OrderCreate', params)
})

//获取订单列表
export const getOrderLists = ((params)=>{
	return http.get('/api/user/getOrderLists', params)
})

//编辑用户信息
export const editUserInfo = ((params)=>{
	return http.post('/api/user/editUserInfo', params)
})

//关注用户
export const followUser = ((params)=>{
	return http.post('/api/user/followUser', params)
})

//取消关注
export const unfollowUser = ((params)=>{
	return http.post('/api/user/unfollowUser', params)
})

//关注列表
export const getFollowingList = ((params)=>{
	return http.get('/api/user/getFollowingList', params)
})

//粉丝列表
export const getFollowerList = ((params)=>{
	return http.get('/api/user/getFollowerList', params)
})

//是否关注当前用户
export const isFollow = ((params)=>{
	return http.get('/api/user/isFollow', params)
})

//删除动态
export const deletePost = ((params)=>{
	return http.get('/api/user/deletePost', params)
})

//编辑动态
export const editDynamics = ((params)=>{
	return http.get('/api/user/editDynamics', params)
})
